package control.bean;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * User: deshun
 * Date: 21/2/13
 * Time: 10:29 AM
 * To change this template use File | Settings | File Templates.
 */
public class ControlPropertiesBean {

    private HashMap<String, String> props;

    public ControlPropertiesBean() {
        props = new HashMap<String, String>();

    }

    public ControlPropertiesBean(HashMap<String, String> props) {
        this.props = props;

    }

    public void addProperty(String key, String value) {
        props.put(key, value);
    }

    public String getProperty(String key) {
        return props.get(key);
    }

    public HashMap<String, String> getProps() {
        return props;
    }

    public void setProps(HashMap<String, String> props) {
        this.props = props;
    }

    public String toString() {
        return props.toString();
    }

}
